package priv.yiyuan.example.design.wrapper;

/**
 * 装备装饰器
 * <p>
 * 装饰器模式-抽象装饰器
 *
 * @author YiYuan
 * @data 2025/9/2
 * @apoNote
 */
public class EquipmentDecorator implements GameCharacter {

    protected GameCharacter character;

    public EquipmentDecorator(GameCharacter character) {
        this.character = character;
    }

    @Override
    public String getName() {
        return character.getName();
    }

    @Override
    public int getAttack() {
        return character.getAttack();
    }

    @Override
    public int getDefense() {
        return character.getDefense();
    }

    @Override
    public String getDescription() {
        return character.getDescription();
    }
}
